package com.jrh.domain.entity;

import java.util.Date;

/**
 * 评论实体
 * 
 * @author yout 2012-7-17 下午9:54:02
 */
public class Comments {

    // 表属性
    private long   id;
    private String content;
    private long   refId;
    private String refType;
    private long   parentId;
    private Date   gmtCommit;
    private Date   gmtModified;
    private long   userId;

    // 页面属性
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getRefId() {
        return refId;
    }

    @Override
    public String toString() {
        return "Comments [id=" + id + ", content=" + content + ", refId=" + refId + ", refType=" + refType
               + ", parentId=" + parentId + ", gmtCommit=" + gmtCommit + ", gmtModified=" + gmtModified + ", userId="
               + userId + ", userName=" + userName + "]";
    }

    public long getParentId() {
        return parentId;
    }

    public void setParentId(long parentId) {
        this.parentId = parentId;
    }

    public void setRefId(long refId) {
        this.refId = refId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRefType() {
        return refType;
    }

    public void setRefType(String refType) {
        this.refType = refType;
    }

    public Date getGmtCommit() {
        return gmtCommit;
    }

    public void setGmtCommit(Date gmtCommit) {
        this.gmtCommit = gmtCommit;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

}
